#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define BUFFER_SIZE 11

int main()
{
    /*生成随机数种子*/
    srand(time(NULL));

    int array[BUFFER_SIZE];
    /*清除脏数据*/
    memset(array, 0, sizeof(array));

    for (int idx = 0; idx < BUFFER_SIZE; idx++)
    {
        array[idx] = rand() % 100 + 1;
    }

    for(int idx = 0; idx < BUFFER_SIZE; idx++)
    {
        printf("array[%d] = %d\n", idx, array[idx]);
    }


    //从小到大






    
    return 0;
}